#登录页面的元素
from selenium.webdriver.common.by import By

username_loc=(By.CSS_SELECTOR, "#username")
password_loc=(By.CSS_SELECTOR, "#password")
verify_code_loc=(By.CSS_SELECTOR, "#verify_code")
login_button_loc=(By.CSS_SELECTOR, "a[name='sbtbutton']")
success_text_loc=(By.CSS_SELECTOR, ".mu-m-phone")
error_text_loc=(By.CSS_SELECTOR, ".layui-layer-content.layui-layer-padding")




#注册页面的元素
#手机号
phone_loc=(By.CSS_SELECTOR, "#username")
#验证码
verify1_code_loc=(By.CSS_SELECTOR, "input[placeholder='图像验证码']")
password1_loc=(By.CSS_SELECTOR, "#password")
password2_loc=(By.CSS_SELECTOR, "#password2")
#推荐人手机号非必填
invite_phone_loc=(By.CSS_SELECTOR, "input[placeholder='请输入手机号码'][name='invite']")
#勾选协议


agree_loc=(By.CSS_SELECTOR, "#checktxt")
register_button_loc=(By.CSS_SELECTOR, ".regbtn.J_btn_agree")
success1_text_loc=(By.CSS_SELECTOR, ".red.userinfo")
error1_text_loc=(By.CSS_SELECTOR, ".layui-layer-content.layui-layer-padding")
reg_alert_btn_loc=(By.CSS_SELECTOR, ".layui-layer-btn a")



